/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rfid;

/**
 *
 * @author xandru
 */
public class RFIDTagEvent {

    public static int NEW_TAG=0;
    public static int UPDATE_TAG=1;

    private Object source;
    private String message;
    private int messageType;
    private TagData tagData;

    public RFIDTagEvent(Object source, String message, int type, TagData td) {
      this.source = source;
      this.message=message;
      this.messageType = type;
      this.tagData = td;
    }

    public String getMessage() {
        return message;
    }

    public int getMessageType() {
        return messageType;
    }

    public Object getSource() {
        return source;
    }

    public TagData getTagData() {
        return tagData;
    }


}
